package mn.slide.laborberlin.model;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "ZHISTORY")
public class History {
	@DatabaseField(canBeNull = true, generatedId = true, columnName = "Z_PK")
	private int id;
	@DatabaseField(canBeNull = true, columnName = "Z_ENT")
	private int ent;
	@DatabaseField(canBeNull = true, columnName = "Z_OPT")
	private int opt;
	@DatabaseField(columnName = "ZERKAID")
	private int erkaId;
	@ForeignCollectionField(eager = false, columnName = "Z3HISTORYSET")
	private ForeignCollection<UnterSuchung> historySet;

	@ForeignCollectionField(eager = false, columnName = "Z3FAVORITESET")
	private ForeignCollection<UnterSuchung> favoriteSet;

	public ForeignCollection<UnterSuchung> getFavoriteSet() {
		return this.favoriteSet;
	}

	public ForeignCollection<UnterSuchung> getHistorySet() {
		return this.historySet;
	}

	public int getId() {
		return this.id;
	}

	public int getEnt() {
		return this.ent;
	}

	public int getOpt() {
		return this.opt;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setEnt(int ent) {
		this.ent = ent;
	}

	public void setOpt(int opt) {
		this.opt = opt;
	}

	public int getErkaId() {
		return this.erkaId;
	}

	public void setErkaId(int erkaId) {
		this.erkaId = erkaId;
	}
}
